package com.sz.ac;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableTransactionManagement 
@SpringBootApplication
@ComponentScan("com.sz.ac")
@PropertySource(value={"classpath:config.properties"})
public class ACApplication extends SpringBootServletInitializer {

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(ACApplication.class);
	}

	public static void main(String[] args) throws Exception {
		SpringApplication.run(ACApplication.class, args);
	}

}
